'use strict';

define(['services'], function (services) {
    services.common.factory('CookieService', function () {
        return {
            setUsername: function (username) {
                $.cookie('username', username, { expires: -1 });
            },
            getUsername: function() {
                return $.cookie('username');
            },
            isLogin: function () {
                var usernanme = this.getUsername();
                var status = $.cookie('loginStatus');
                if (isNotEmpty(usernanme)) {

                }
            }
        };
    });
});